export const buttonForm = {
  id: '',
  sort: 1,
  type: 'button',
  auto_size: true,
  button_type: 'normal',
  left: 0,
  top: 0,
  width: 0,
  height: 0,
  link_type: '',
  link: '',
  link_image: '',
  _link_image: '',
  focus_image: '',
  _focus_left: 0,
  _focus_top: 0,
  focus_left: 0,
  focus_top: 0,
  focus_index: 0,
  index: 0,
}

export const imageForm = {
  sort: 1,
  type: 'image',
  auto_size: true,
  left: 0,
  top: 0,
  width: 0,
  height: 0,
  link_image: '',
  _link_image: '',
  index: 0,
}

export const videoForm = {
  sort: 1,
  type: 'video',
  auto_size: true,
  left: 0,
  top: 0,
  width: 0,
  height: 0,
  link: '',
  link_image: '',
  _link_image: '',
  index: 0,
}

export const linkTypes = [
  {
    value: 'url',
    title: '跳转地址',
  },
  {
    value: 'video',
    title: '视频',
  },
]

export const dirList = [
  {
    type: 'left',
    label: '向左',
  },
  {
    type: 'right',
    label: '向右',
  },
  {
    type: 'up',
    label: '向上',
  },
  {
    type: 'down',
    label: '向下',
  },
]

export const types = [
  { label: '按钮', value: 'button' },
  { label: '图片', value: 'image' },
  { label: '视频', value: 'video' },
]

export const imageTypes = [
  {
    value: 'link_image',
    title: '元素图片',
  },
  {
    value: 'focus_image',
    title: '聚焦图片',
  },
]

export const buttonTypes = [
  {
    value: 'normal',
    title: '普通按钮',
  },
  {
    value: 'back',
    title: '返回按钮',
  },
]

export const functions = [
  {
    type: 'add',
    title: '新建',
    icon: 'plus',
  },
  {
    type: 'save',
    title: '保存',
    icon: 'save',
  },
  {
    type: 'cache',
    title: '缓存',
    icon: 'baby',
  },
  {
    type: 'view',
    title: '预览',
    icon: 'eye',
  },
  // {
  //   type: 'undo',
  //   title: '撤销',
  //   icon: 'undo',
  // },
  {
    type: 'page',
    title: '页面',
    icon: 'pager',
  },
  {
    type: 'clean',
    title: '清缓存',
    icon: 'quidditch',
  },
  // {
  //   type: 'explorer',
  //   title: '资源',
  //   icon: 'window-restore',
  // },
]

// export const historyHash = {
//   add: [],
//   delete: [],
//   changeDom: [],
//   changeRoute: [],
//   page: [],
// }
